package com.cyk.comicforumjava.demos.service;

import com.cyk.comicforumjava.demos.base.ResponseResult;
import com.cyk.comicforumjava.demos.dto.UserDto;
import com.cyk.comicforumjava.demos.enits.User;
import com.cyk.comicforumjava.demos.vo.LoginVo;
import com.qiniu.api.auth.AuthException;
import org.json.JSONException;

import java.io.UnsupportedEncodingException;

public interface LoginService {
    ResponseResult<LoginVo> login(UserDto userDto);

    ResponseResult<String> register(UserDto userDto);


    ResponseResult<User> getUser(UserDto userDto);

    ResponseResult<String> getQiniuToken(UserDto userDto) throws AuthException, JSONException;

    ResponseResult<String> changeAvater(User user) throws UnsupportedEncodingException;

    ResponseResult<String> updateSignature(User user);

    ResponseResult getUserList();

    ResponseResult confirmCode(UserDto userDto) throws Exception;

    ResponseResult changePassword(UserDto userDto);
}
